/********************************************************************
	created:	2009:12:14   23:55:16
	filename: 	progresstrack.h
	author:		zouyf
	describe:	
*********************************************************************/
#pragma once

class FProgressTrack : public CWindowImpl<FProgressTrack, CTrackBarCtrl>,
					   public CCustomDraw<FProgressTrack>
{
public:
	BEGIN_MSG_MAP_EX(FProgressTrack)
		MSG_WM_LBUTTONDOWN(OnLButtonDown)
		MSG_WM_LBUTTONUP(OnLButtonUp)
		CHAIN_MSG_MAP_ALT(CCustomDraw<FProgressTrack>, 1)
		DEFAULT_REFLECTION_HANDLER()
	END_MSG_MAP()

	void OnLButtonDown(UINT nFlags, CPoint point);
	void OnLButtonUp(UINT nFlags, CPoint point);
	DWORD OnPrePaint(int , LPNMCUSTOMDRAW );
	DWORD OnItemPrePaint(int /*idCtrl*/, LPNMCUSTOMDRAW /*lpNMCustomDraw*/);
};
